<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "set_user_up".
 *
 * @property int $id
 * @property float $price1 会员升级价格
 * @property float $price2 总代升级价格
 * @property float $price3 执行总裁升级价格
 * @property float $price4 执行CEO升级价格
 * @property float $price5 执行董事升级价格
 * @property int $team1 总代团队X个会员
 * @property int $recommend1 总代直推X个明星代言人
 * @property int $team2 执行总裁团队X个全球总代
 * @property int $recommend2 执行总裁直推X个明星代言人
 * @property int $team3 执行CEO团队X个总裁
 * @property int $recommend3 执行CEO直推X个明星代言人
 * @property int $team4 执行董事团队X个CEO
 * @property int $recommend4 执行董事直推X个明星代言人
 * @property float $c1_1 直推奖金
 * @property float $c1_2 间推奖金
 * @property int $e1 平级比例
 * @property float $c2_1 直推奖金
 * @property float $c2_2 间推奖金
 * @property int $e2 平级比例
 * @property float $c3_1 直推奖金
 * @property float $c3_2 间推奖金
 * @property int $e3 平级比例
 * @property float $c4_1 直推奖金
 * @property float $c4_2 间推奖金
 * @property int $e4 平级比例
 * @property float $c5_1 直推奖金
 * @property float $c5_2 间推奖金
 * @property int $e5 平级比例
 * @property float $re1 复购折扣
 * @property float $re2 复购折扣
 * @property float $re3 复购折扣
 * @property float $re4 复购折扣
 * @property float $re5 复购折扣
 * @property float $re6 复购折扣
 * @property float $re7 复购折扣
 * @property float $re8 复购折扣
 * @property float $re9 复购折扣
 * @property float $re10 复购折扣
 * @property float $p1 所有运营中心平均分红比例，复购订单
 * @property float $p2 所有运营中心平均分红比例，总流水， 首购+复购
 * @property float $p3 所有运营中心加权分红比例，总流水， 首购+复购
 * @property float $g1 德悦， 股东结算
 * @property float $g2 6个股东平均分， 股东结算
 * @property float $new_repeat_start1 运营中心, 复购分红
 * @property float $new_repeat_start2
 * @property float $new_repeat_start3
 * @property float $new_repeat_ratio1
 * @property float $new_repeat_ratio2
 * @property float $new_repeat_ratio3
 */
class SetUserUp extends \yii\db\ActiveRecord
{
    use SetUserUpCommon;

    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'set_user_up';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['price1', 'price2', 'price3', 'price4', 'price5', 'c1_1', 'c1_2', 'c2_1', 'c2_2', 'c3_1', 'c3_2', 'c4_1', 'c4_2', 'c5_1', 'c5_2', 're1', 're2', 're3', 're4', 're5', 're6', 're7', 're8', 're9', 're10', 'p1', 'p2', 'p3', 'g1', 'g2', 'new_repeat_start1', 'new_repeat_start2', 'new_repeat_start3', 'new_repeat_ratio1', 'new_repeat_ratio2', 'new_repeat_ratio3'], 'number'],
            [['team1', 'recommend1', 'team2', 'recommend2', 'team3', 'recommend3', 'team4', 'recommend4', 'e1', 'e2', 'e3', 'e4', 'e5'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'price1' => 'Price 1',
            'price2' => 'Price 2',
            'price3' => 'Price 3',
            'price4' => 'Price 4',
            'price5' => 'Price 5',
            'team1' => 'Team 1',
            'recommend1' => 'Recommend 1',
            'team2' => 'Team 2',
            'recommend2' => 'Recommend 2',
            'team3' => 'Team 3',
            'recommend3' => 'Recommend 3',
            'team4' => 'Team 4',
            'recommend4' => 'Recommend 4',
            'c1_1' => 'C 1  1',
            'c1_2' => 'C 1  2',
            'e1' => 'E 1',
            'c2_1' => 'C 2  1',
            'c2_2' => 'C 2  2',
            'e2' => 'E 2',
            'c3_1' => 'C 3  1',
            'c3_2' => 'C 3  2',
            'e3' => 'E 3',
            'c4_1' => 'C 4  1',
            'c4_2' => 'C 4  2',
            'e4' => 'E 4',
            'c5_1' => 'C 5  1',
            'c5_2' => 'C 5  2',
            'e5' => 'E 5',
            're1' => 'Re 1',
            're2' => 'Re 2',
            're3' => 'Re 3',
            're4' => 'Re 4',
            're5' => 'Re 5',
            're6' => 'Re 6',
            're7' => 'Re 7',
            're8' => 'Re 8',
            're9' => 'Re 9',
            're10' => 'Re 10',
            'p1' => 'P 1',
            'p2' => 'P 2',
            'p3' => 'P 3',
            'g1' => 'G 1',
            'g2' => 'G 2',
            'new_repeat_start1' => 'New Repeat Start 1',
            'new_repeat_start2' => 'New Repeat Start 2',
            'new_repeat_start3' => 'New Repeat Start 3',
            'new_repeat_ratio1' => 'New Repeat Ratio 1',
            'new_repeat_ratio2' => 'New Repeat Ratio 2',
            'new_repeat_ratio3' => 'New Repeat Ratio 3',
        ];
    }
}
